package com.tarena.lbs.content.pojo.po;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.*;

import java.util.Date;

@Data
@ToString
@Setting(shards = 1, replicas = 0)
@Document(indexName = "lbs_action")
public class ActionSearchPO {
	
	@Id
	@Field(type = FieldType.Keyword)
	private String id; // 主键ID
	
	@Field(type = FieldType.Integer)
	private Integer articleUserId; // 文章作者ID
	
	@Field(type = FieldType.Auto)
	private String articleTitle; // 文章标题
	
	@Field(type = FieldType.Integer)
	private Integer behaviorUserId; // 行为用户ID
	
	@Field(type = FieldType.Date, format = {DateFormat.date_hour_minute_second})
	private Date createTime; // 创建时间
	
	@Field(type = FieldType.Integer)
	private Integer articleId; // 文章ID
	
	@Field(type = FieldType.Keyword)
	private String articleType; // 文章类型
	
	@Field(type = FieldType.Keyword)
	private String articleLabel; // 文章标签
	
	@Field(type = FieldType.Text)
	private String comment; // 评论内容
	
	@Field(type = FieldType.Integer)
	private Integer behavior; // 行为类型
	
}
